package com.yubest.junit.thread;

import java.util.concurrent.TimeUnit;

/**
 * 线程睡眠
 *
 * @Author: hweiyu
 * @Date: 2022/11/15 15:59
 */
public class Sleep {

    public static void seconds(long seconds) {
        try {
            TimeUnit.SECONDS.sleep(seconds);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
